package comptadub

class Membre {

    String      nom
    String      email
    String      code
    Float       solde       = 0.0
    Float       soldeInit   = 0.0
    TypeMembre  type
	Boolean		virement = false

    static hasMany = [presences:Presence]
    
    static constraints = {
        nom(blank:false)
        code(blank:false)
        email(email:true, blank:false)
        type(nullable:true)
    }

    static mapping = {
        sort "nom"
    }    
}
